package com.welldone.service;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;


/**
 * 
 *@Description
 *@author your name
 *@createDate 2011-5-25 下午10:04:37
 *@version V1.0
 */
public class ServerListener implements ServletContextListener {

	LoginService ls = new LoginService();
	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		System.out.println("服务器关闭");
		ls.resetUserStatus();
		
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		System.out.println("服务器启动");
		//ls.resetUserStatus();
	}

}

